from django.conf.urls.defaults import *


details1 = {'opts' : ('name' , 'email')}
details2 = {'opts' : ('name' , 'birthday')}
details3 = {'opts' : ('name' , 'favoriteURL')}



urlpatterns = patterns('iFriends.People.views',
    (r'^$','index'),
    #(r'^Info/$','details'),
    (r'^Info/(?P<pID>\d+)/$' , 'details'),
    (r'^Info/(?P<name>[A-Za-z]+)/$' , 'detailsnome'),
    (r'^Contact/(?P<pID>\d+)/$' , 'details' , details1),
    (r'^Birthday/(?P<pID>\d+)/$' , 'details' , details2),
    (r'^Details/(?P<pID>\d+)/$' , 'details' , details3),
    (r'^Form/(?P<pID>\d+)/$', 'person_form'),
    #Blog
    (r'^Info/(?P<name>[^/]+)/$' , 'details_blog'),
    (r'^AddBlogForm/(?P<pID>\d+)/$', 'add_blog'),
    #Parte do Blog
   # (r'^$','index_blog'),
   
)
